import Layout from '@/layouts'

const analyticsRouter = {
  path: '/analytics',
  component: Layout,
  redirect: '/analytics/dashboard',
  name: 'Analytics',
  meta: {
    title: '数据分析',
    icon: 'chart',
    role: 20
  },
  children: [
    {
      path: 'dashboard',
      component: () => import('@/views/analytics/index'),
      name: 'AnalyticsDashboard',
      meta: { 
        title: '数据概览',
        role: 21
      }
    },
    {
      path: 'user',
      component: () => import('@/views/analytics/user/index'),
      name: 'UserAnalytics',
      meta: { 
        title: '用户分析',
        role: 22
      }
    },
    {
      path: 'content',
      component: () => import('@/views/analytics/content/index'),
      name: 'ContentAnalytics',
      meta: { 
        title: '内容分析',
        role: 23
      }
    },
    {
      path: 'analytics-author',
      component: () => import('@/views/analytics/author/index'),
      name: 'AuthorAnalytics',
      meta: { 
        title: '作者分析',
        role: 24
      }
    },
    {
      path: 'revenue',
      component: () => import('@/views/analytics/revenue/index'),
      name: 'RevenueAnalytics',
      meta: { 
        title: '收入分析',
        role: 25
      }
    },
    {
      path: 'monitoring',
      component: () => import('@/views/analytics/monitoring'),
      name: 'SystemMonitoring',
      meta: { 
        title: '系统监控',
        role: 26
      }
    }
  ]
}

export default analyticsRouter 